package com.ty.day1;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : TangYu
 * @create 2023/10/26 16:56
 */
public class Third {
    public static void main(String[] args) {
        int a = 7;
        int b = 4;
        System.out.println("a=" + a + ",b=" + b);
        a = a + b;
        b = a - b;
        a = a - b;
        System.out.println("a=" + a + ",b=" + b);
        a = a - b;
        b = a + b;
        a = b - a;
        System.out.println("a=" + a + ",b=" + b);
        int c;
        c = a;
        a = b;
        b = c;
        System.out.println("a=" + a + ",b=" + b);
    }
}
